
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.Sale;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Sale entities.
 * 
 */
public interface SaleDAO extends JpaDao<Sale> {

	/**
	 * JPQL Query - findSaleById
	 *
	 */
	public Sale findSaleById(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findSaleById
	 *
	 */
	public Sale findSaleById(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSaleByMemo
	 *
	 */
	public Set<Sale> findSaleByMemo(String memo) throws DataAccessException;

	/**
	 * JPQL Query - findSaleByMemo
	 *
	 */
	public Set<Sale> findSaleByMemo(String memo, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllSales
	 *
	 */
	public Set<Sale> findAllSales() throws DataAccessException;

	/**
	 * JPQL Query - findAllSales
	 *
	 */
	public Set<Sale> findAllSales(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSaleByMemoContaining
	 *
	 */
	public Set<Sale> findSaleByMemoContaining(String memo_1) throws DataAccessException;

	/**
	 * JPQL Query - findSaleByMemoContaining
	 *
	 */
	public Set<Sale> findSaleByMemoContaining(String memo_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSaleBySaleType
	 *
	 */
	public Set<Sale> findSaleBySaleType(String saleType) throws DataAccessException;

	/**
	 * JPQL Query - findSaleBySaleType
	 *
	 */
	public Set<Sale> findSaleBySaleType(String saleType, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSaleByPrimaryKey
	 *
	 */
	public Sale findSaleByPrimaryKey(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findSaleByPrimaryKey
	 *
	 */
	public Sale findSaleByPrimaryKey(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSaleBySaleTypeContaining
	 *
	 */
	public Set<Sale> findSaleBySaleTypeContaining(String saleType_1) throws DataAccessException;

	/**
	 * JPQL Query - findSaleBySaleTypeContaining
	 *
	 */
	public Set<Sale> findSaleBySaleTypeContaining(String saleType_1, int startResult, int maxRows) throws DataAccessException;

}